<html>
<head>
<title>flash多图片上传系统</title>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/Css/admin_style.css"/>
<link rel="stylesheet" href="__PUBLIC__/Js/flashupload/uploadify.css" type="text/css" />
<load href="__PUBLIC__/Js/jquery.js"/>
<script type="text/javascript" src="__PUBLIC__/Js/flashupload/jquery.uploadify.js"></script>
<script language="javascript">
var arr=[];
$(function(){
   	$("#flashupload1").fileUpload({
		'uploader': '__PUBLIC__/Js/flashupload/uploader.swf',
		'cancelImg': '__PUBLIC__/Js/flashupload/cancel.png',
		'script': '__PUBLIC__/Js/flashupload/upload.php?is_thumb={$Think.get.is_thumb}&thumb_w={$Think.get.thumb_w}&thumb_h={$Think.get.thumb_h}&thumb_label={$Think.get.thumb_label}&thumb_type={$Think.get.thumb_type}&is_wm={$Think.get.is_wm}&wm_type={$Think.get.wm_type}&wm_pos={$Think.get.wm_pos}',
		'folder': '',
		'multi': true,
		'fileDesc' :'image',
        'fileExt':'*.jpg;*.jpeg;*.gif;*.png',
		'simUploadLimit': 20,
		onComplete: function (evt, queueID, fileObj, response, data) {
		    if(response==0){
			  response=0;
			}else{
			  response="__ROOT__/Public/uploads/<php>echo date('Ymd');</php>/"+response;
			}
			arr.push(response);
		},
		onAllComplete:function(evt,data){
		    if(arr.length){alert('上传成功');window.close();window.returnValue=arr.join(',');}
		}
	});
});
</script>
</head>
<body>

<table  border="0" cellspacing="0" cellpadding="0" style="margin-left:30px; margin-top:30px;">
  <tr>
    <td colspan="2" align="center"><span style="font-size:20px; font-weight:bold">flash多图片上传</span></td>
  </tr>
  <tr><td colspan="2" height="40"></td></tr>
  <tr>
    <td><div id="flashupload1"></div></td>
    <td  style="padding-left:30px; vertical-align:top"><input type="button"  onclick="javascript:$('#flashupload1').fileUploadStart();" value="上 传"/>&nbsp;&nbsp;<input type="button" onClick="javascript:$('#flashupload1').fileUploadClearQueue()" value="取 消">&nbsp;&nbsp;<input type="button" onClick="window.opener=null;window.close();" value="关 闭"></td>
  </tr>
  
  <tr>
    <td colspan="2" style="padding-top:30px;"><div align="center">{$setup.webname}&copy;{$setup.weburl}</div></td>
  </tr>
</table>
</body>
</html>
